<!--头部公共部分-->
{include file="common/header" /}
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a><cite>作业详情</cite></a>
      </span>
    <a class="layui-btn layui-btn-xs layui-btn-small" style="float:right;margin-top: 10px;"
       href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon layui-icon-refresh"></i> </a>
</div>
<div style="padding:15px;">
    <div class="layui-form layui-form-pane">
        <div class="layui-form-item">
            <label class="layui-form-label">作业名称</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" class="layui-input" readonly value="{$work.work_name}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">作业时间</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" class="layui-input" readonly  value="{$work.work_time}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">发布人</label>
            <div class="layui-input-block">
                <input type="text" autocomplete="off" class="layui-input" readonly  value="{$work.publisher}">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">音频</label>
            <div class="layui-input-block">
                {if $work.audio == '' || $work.audio == null}
                <div class="layui-table-link">
                    <i class="layui-icon {$work.audio_text}" style="width: 300px;height: 300px;line-height: 38px;
    margin-left: 10px;"></i>
                </div>
                {else/}
                <a href="{$work.audio}" target="_blank" class="layui-table-link">
                    <i class="layui-icon {$work.audio_text}" style="width: 300px;height: 300px;line-height: 38px;
    margin-left: 10px;"></i>
                </a>
                {/if}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">视频</label>
            <div class="layui-input-block">
                {if $work.video == '' || $work.video == null}
                <div class="layui-table-link">
                    <i class="layui-icon {$work.video_text}" style="width: 300px;height: 300px;line-height: 38px;
    margin-left: 10px;"></i>
                </div>
                {else/}
                <a href="{$work.video}" target="_blank" class="layui-table-link">
                    <i class="layui-icon {$work.video_text}"  style="width: 300px;height: 300px;line-height: 38px;
    margin-left: 10px;"></i>
                </a>
                {/if}
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">图片</label>
            <div class="layui-input-block">
                {if $work.picture == '' || $work.picture == null}
                <div class="layui-table-link">
                    <i class="layui-icon {$work.picture_text}" style="width: 300px;height: 300px;line-height: 38px;
    margin-left: 10px;"></i>
                </div>
                {else/}
                    {volist name="picture" id="v"}
                    <a href="{$v}" target="_blank" class="layui-table-link">
                        <img src="{$v}" style="width: 38px;height: 38px;
    margin-left: 10px;"/>
                    </a>
                    {/volist}
                {/if}
            </div>
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">具体内容</label>
            <div class="layui-input-block">
                <textarea class="layui-textarea" readonly>{$work.content}</textarea>
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <a class="layui-btn" id="cancel">返回</a>
            </div>
        </div>
    </div>
</div>
<!--底部公共部分-->
{include file="common/footer" /}
<script>
    layui.use(['table','element', 'layer'], function () {
        let $ = layui.$;
        let class_manage_details_id = "{$work.cmdl_id}";
        $('#cancel').click(function () {
            location.href = "{:url('Arranging/look_work')}?id="+class_manage_details_id;
        });
    });
</script>